package com.yunyan.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@TableName("schools")
@EqualsAndHashCode
public class SchoolData {

    @ExcelProperty(index = 0)
    @TableId(type = IdType.INPUT)
    private String id;

    @ExcelProperty(index = 1)
    private String name;

    @ExcelProperty(index = 12)
    private String address;

    @ExcelProperty(index = 13)
    private String website;

    @ExcelProperty(index = 14)
    private String level;

    @ExcelProperty(index = 15)
    @TableField("`type`")
    private String type;

    @ExcelProperty(index = 16)
    private String attr;

    @ExcelProperty(index = 17)
    private String subject;

    private String icon;

}
